<form class="layui-form" onsubmit="return false;">
    <input type="hidden" name="bean.id" value="#(bean.id??)">
    <div class="main-container">
        <div class="layui-form-item">
            <label class="layui-form-label required">任务名称</label>
            <div class="layui-input-block">
                <input type="text" name="bean.name" value="#(bean.name??)" lay-verify="required" autocomplete="off" placeholder="请输入任务名称" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">任务分组</label>
            <div class="layui-input-block">
                <select name="bean.group">
                    <option value="">-- 请选择 --</option>
                #DICTS(type="job_group")#for(item : dicts)
                    <option value="#(item.value)"#if(item.value == bean.group??) selected#end>#(item.label)</option>
                #end#end
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">是否并发</label>
            <div class="layui-input-inline">
                <input type="radio" name="bean.concurrent" value="true" title="允许" #if(bean.concurrent??) checked #end>
                <input type="radio" name="bean.concurrent" value="false" title="禁止" #if(!bean.concurrent??) checked #end>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">目标字符串</label>
            <div class="layui-input-block">
                <input type="text" name="bean.target" value="#(bean.target??)" lay-verify="required" autocomplete="off" placeholder="请输入任务目标字符串" class="layui-input">
                <div class="layui-form-mid layui-word-aux"><i class="layui-icon layui-icon-about"></i>&nbsp;Bean调用示例：demoTask.params('demo') 
                <br><i class="layui-icon layui-icon-about"></i>&nbsp;Class类调用示例：cn.hg.jbsa.job.demo.DemoTask.params('demo')
                <br><i class="layui-icon layui-icon-about"></i>&nbsp;参数说明：支持字符串，布尔类型，长整型，浮点型，整型</div>
            </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">执行表达式</label>
            <div class="layui-input-block">
                <input type="text" name="bean.cron" value="#(bean.cron??)" lay-verify="required" autocomplete="off" placeholder="请输入执行表达式" class="layui-input">
            	<div class="layui-form-mid layui-word-aux"><i class="layui-icon layui-icon-about"></i>&nbsp;必须为合法的Cron字串（非Quartz），如：3-18/5 * * * * </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="bean.remark" style="height: 30px;" autocomplete="off" placeholder="请输入备注内容" class="layui-textarea">#(bean.remark??)</textarea>
            </div>
        </div>
    </div>
    <div class="layui-form-item" style="display: none;">
        <div class="layui-input-block">
            <button type="submit" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit="" lay-filter="data-save" id="data-save">
                <i class="layui-icon layui-icon-ok"></i> 提交
            </button>
        </div>
    </div>
</form>
#include("/admin/_common/foot.html")
<script type="text/javascript">
layui.use(['jquery', 'form', 'common'], function() {
    var $ = layui.jquery;
    var form = layui.form;
    var common = layui.common;
});
</script>
